package com.example.fresheveryday.service.Impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.fresheveryday.po.Comment;
import com.example.fresheveryday.po.Log;
import com.example.fresheveryday.mapper.LogMapper;
import com.example.fresheveryday.po.Product;
import com.example.fresheveryday.service.LogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ll
 * @since 2023-07-07
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements LogService {
    @Autowired
    LogMapper logMapper;
    @Override
    public IPage<Log> getAllLog(IPage<Log> page) {
        return logMapper.getAllLog(page);
    }

    @Override
    public IPage<Log> getLogByConditions(IPage<Log> page, Wrapper wrapper) {
        return logMapper.getLogByConditions(page,wrapper);
    }

    @Override
    public int countByConditions(Wrapper wrapper) {
        return logMapper.countByConditions(wrapper);
    }
}
